//
//  NWDisTableViewController.swift
//  微博01
//
//  Created by 牛威 on 15/12/5.
//  Copyright © 2015年 牛威. All rights reserved.
//

import UIKit

class NWDisTableViewController: NWVisitorTableViewController {
    


    override func viewDidLoad() {
    
        super.viewDidLoad()
        
        if !UserAccountViewModel.sharedAccount.isLogin {
            
            visitorView?.setVisitorViewInfo("visitordiscover_image_message", message: "翻着我们的照片，想念若隐若现，去年的冬天，我们笑得很甜")
            
            return
        }
        
        
            setupSearchView()

        
    }
    
    
    
    
    
   @objc private func setupSearchView(){
    
        //初始化控件
        
        
        let searchView = NWDisView.searchBar()
        
        searchView.frame = CGRect(x: 0, y: 0, width: UIScreen.mainScreen().bounds.width, height: 35)
        
        navigationItem.titleView = searchView

    
    }

}
